package main

import (
	"fmt"
)

type Student struct {
	name string
	age  int
}

const (
	sss string = "3"
	s1  int    = 2
)

func NewStudent(name string, age int) *Student {
	return &Student{name: name, age: age}
}

func (t *Student) GetName() string {
	return t.name
}

func (t *Student) SetName(name string) {
	t.name = name
}

func (t *Student) GetAge() int {
	return t.age
}

func (t *Student) SetAge(age int) {
	t.age = age
}

func main() {
	var student Student
	student.SetName("huqi")
	student.SetAge(24)
	fmt.Println(student.GetName())
	fmt.Println(student.GetAge())
	var stu = Student{age: 12, name: "huqi"}
	fmt.Println(stu.GetName())
	var s = NewStudent("huqi", 23)
	fmt.Println(s.name)
}
